Crate web_transport
source ·Expand description
A generic WebTransport interface.
The underlying implementation switches based on the platform:
- native: web_transport_quinn
- web: web_transport_wasm
Currently, you have to use either of those traits to accept (server) or create (client) a session. Then you can use Session::from() to cast to this generic interface.
Structs§
- An incoming stream of bytes from the peer.
- An outgoing stream of bytes to the peer.
- A WebTransport Session, able to accept/create streams and send/recv datagrams.
Type Aliases§
- A RecvStream error
- A Session error
- A SendStream error